#!/usr/bin/env python

def make_repeater(n):
    return lambda s: s*n

twice = make_repeater(2)
print(twice("word"))
print(twice(10))
